
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import sun.security.util.Password;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Pessoal
 */
public class tabela_login {

    @PersistenceCapable(identityType = IdentityType.APPLICATION)
    public class gravar_login {
        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Long id;

        @Persistent                       //persistencias by leticia
        private String usuario;

        @Persistent
        private String senha;

        public gravar_login (String usuario,String senha){
            this.usuario = usuario;          //construtor by leticia
            this.senha = senha;
        }
        public Long getId(){
            return id;                      // gets by leticia
        }
        public String getUsuario(){
            return usuario;
        }
        public String getSenha(){
            return senha;
        }
        public void setUsuario(String usuario){
            this.usuario = usuario;
        }                                      // sets by leticia
        public void setSenha(String senha){
            this.senha = senha;
        }
    }
}
